const setUserInfo = (state, userInfo) => {
	state.userInfo = userInfo
	if(userInfo){
		if(!userInfo.weixin_unionid ){
			state.isLoad = "weixinLogin";
		}else if(!userInfo.member_mobile ){
			state.isLoad = "phoneLogin";
		}else if(userInfo.member_mobile && userInfo.weixin_unionid){
			state.isLoad = "loaded";
		}
	}
}
const setStateIsLoad=(state,loginType)=>{
	state.isLoad = loginType
}
export default {
	setUserInfo,
	setStateIsLoad
}